
interface IPhones {
  id: number;
  name: string;
  limit: number;
  color: IPhoneColor[];
  version:IPhoneVersion[]
}

interface IPhoneColor {
  cid: number;
  mark: string;
  title: string;
  img: string;
}

interface IPhoneVersion{
  vid: number;
  mark: string;
  title: string;
  price: number;
}

//继承并添加属于自己的字段属性
interface IFlatPhones extends IPhones{
  currentColor: IPhoneColor;
}

  //导出接口类型
export type {
  IPhones,
  IPhoneColor,
  IPhoneVersion,
  IFlatPhones
}